//
//  UIActionSheet+RAC.h
//  高仿暴走斗图
//
//  Created by key on 16/3/22.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIActionSheet (RAC)

/**
 *  show一个Sheet _block格式
 *
 *  @param nextBlock              点击button后的回调block
 *  @param view                   Show In View
 *  @param title                  title
 *  @param delegate               delegate
 *  @param cancelButtonTitle      cancelButtonTitle
 *  @param destructiveButtonTitle destructiveButtonTitle
 *  @param otherButtonTitles      otherButtonTitles
 */
+ (void)showSheetNextBlock:(void(^)(id x))nextBlock showInView:(UIView *)view withTitle:(NSString *)title delegate:(id<UIActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray<NSString *> *)otherButtonTitles;
+ (void)showSheetNextBlock:(void(^)(id x))nextBlock showInView:(UIView *)view withTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray<NSString *> *)otherButtonTitles;

/**
 *  show一个Sheet _rac格式
 *
 *  @param view                   Show In View
 *  @param title                  title
 *  @param delegate               delegate
 *  @param cancelButtonTitle      cancelButtonTitle
 *  @param destructiveButtonTitle destructiveButtonTitle
 *  @param otherButtonTitles      otherButtonTitles
 *
 *  @return rac的signal，即：选中的index
 */
+ (RACSignal *)rac_showSheetInView:(UIView *)view withTitle:(NSString *)title delegate:(id<UIActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray<NSString *> *)otherButtonTitles;
+ (RACSignal *)rac_showSheetInView:(UIView *)view withTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray<NSString *> *)otherButtonTitles;

@end
